import weather from "@/components/weather";
import Calender from "@/components/Calendar";
export default {

	components: {
		weather,
		Calender,
	},


	data() {
		return {
			userNum: "",
			foodNum: "",
			onlineNum: "",
		}

	},

	created() {
		this.getUserNum();
		this.getFoodNum();
		this.getOnlineNum();
	},

	methods: {
		async getUserNum() {
			this.$api.get("user/num").then((res) => {
				this.userNum = res.data.data;
			})
		},

		async getFoodNum() {
			this.$api.get("food/num").then((res) => {
				this.foodNum = res.data.data;
			})
		},

		async getOnlineNum() {
			this.$api.get("online/num").then((res) => {
				this.onlineNum = res.data.data;
			})
		},



	}


}
